package com.authine.cloudpivot.ext.applicationservice;

import com.alibaba.cola.dto.SingleResponse;
import com.authine.cloudpivot.ext.model.yunshu.YsRequestModel;
import com.authine.cloudpivot.ext.model.yunshu.YsResultModel;
import com.authine.cloudpivot.ext.service.PunchoutService;
import com.authine.cloudpivot.ext.service.impl.PunchoutServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;

import javax.ws.rs.POST;
import javax.ws.rs.Path;

import static com.authine.hermes.app.launcher.service.ApplicationServiceFoundation.CUSTOM_SERVICE;

/**
 * @Author hxd
 * @Date 2021/10/15 11:53
 * @Description 对外接口api
 **/

@Path("PunchoutApi")
@Slf4j
public class PunchoutApi {

    private PunchoutService puchoutApi = new PunchoutServiceImpl();


    @Path("updateYunShuGoods")
    @POST
    @Operation(summary = "氚云:更改商品状态给到云枢", tags = CUSTOM_SERVICE, description = "")
    public SingleResponse<YsResultModel> updateYunShuGoods(@RequestBody YsRequestModel ysRequestModel) {
        return puchoutApi.updateYunShuGoods(ysRequestModel);
    }


}
